package com.swx.identityservice.service.impl;


import com.swx.identityservice.mapper.ScbpHandleBusinessMapper;
import com.swx.identityservice.models.ScbpHandleBusiness;
import com.swx.identityservice.service.ScbpHandleBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LC
 * @version V1.0.0
 * @date 2018-5-25 10:34
 */
@Service
public class ScbpHandleBusinessImpl extends CrudServiceImpl<ScbpHandleBusiness> implements ScbpHandleBusinessService {

    @Autowired
    private ScbpHandleBusinessMapper mapper;

    @Override
    public List<ScbpHandleBusiness> getDeptsAsTree(Object key) throws Exception {
        return mapper.getDeptsAsTree(key);
    }

    @Override
    public List<ScbpHandleBusiness> getHandlebusinessById(Integer id) throws Exception {
        return mapper.getHandlebusinessById(id);
    }

    @Override
    public int selectCountById(Integer id) throws Exception {
        return mapper.selectCountById(id);
    }
}
